package fourth;

import java.util.Scanner;

public class seven_3 {
    public static void main(String[] args) {
        int[] num = new int[101];
        Scanner input = new Scanner(System.in);
        for(int i=1;i<=10;i++){
            int x= input.nextInt();
            num[x]++;
        }
        for(int i=1;i<=100;i++){
            if(num[i]!=0)
                System.out.println(i+" occurs "+num[i]+" times");
        }
    }
}
